package cn.wolfcode.shop.mq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by wolfcode-lanxw
 */
@Component
public class TopicSender {
    @Autowired
    private JmsTemplate jmsTemplate;
    public void sendCancelSeckillOverSignMsg(Long goodId){
        jmsTemplate.convertAndSend(MQConfig.SECKILL_OVER_SIGN_DESTINATION,goodId+"");
    }
}
